package com.wzcl.app.dao.repository;

import com.wzcl.app.dao.model.LiveRoom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface LiveRoomRepository  extends JpaRepository<LiveRoom,Integer>, JpaSpecificationExecutor<LiveRoom> {
    LiveRoom findByNub(String unb);

    LiveRoom findByChannelIdAndSessionIdLike(Integer channelId, String sessionId);

    LiveRoom findByChannelIdAndRoomState(Integer channelId, Integer roomState);
}
